using System;
using System.Collections.Generic;
using System.Text;

namespace NBusiness.Query
{
    /// <summary>
    /// The lowest level element queries consist of.
    /// </summary>
    public interface IRelationalElement
    {
        /// <summary>
        /// Convert this object into SQL with a new context.
        /// </summary>
        /// <returns>The SQL represents this relational element.</returns>
        string ToSql();
        /// <summary>
        /// Convert this object into SQL using this context.
        /// </summary>
        /// <param name="context">The context to create the SQL from.</param>
        /// <returns>The SQL represents this relational element.</returns>
        string ToSql(IQueryContext context);
    }
}
